<?php
//system config
function config()
{
	global $smarty, $db;
	//$db->fetchMode(Zend_Db::FETCH_OBJ);
	$select = $db->select();
	$select->from('config');
	$result = $db->fetchPairs($select);
	$smarty->assign('config',$result);
}
function arrConfig ()
{
    global $db;
    $select = $db->select();
    $select->from('config');
    $result = $db->fetchPairs($select);
    return $result;
}

?>